﻿@model Tasks.UI.Models.SellMainModel
<div class="w_1002">
    <div class="in_left">
        <div class="inleft_top">
            <img src="/images/in_left_t.png" alt="" border="0" /></div>
        <div class="inleft_zhong" style="height: 623px">
            <div class="Welcome">
                <span>上次登录：@Model.Account.LastLoginTime</span>@Config.CurrentOperator.Name，欢迎您！</div>
            <div class="finance">
                <div class="finance_bt">
                    <ul>
                        <li id="finance_1" class="hover3"><a href="javascript:void(0)">产品助手</a></li>
                    </ul>
                </div>
                <div class="finance_lr">
                    <div id="finance_1_news" class="financelist">
                        <ul>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('线路管理','/Tour/Manage',true)">
                                <img src="/images/financelistimg3.jpg" alt="" border="0" /></a><a href="javascript:void(0)"
                                    onclick="parent.addTab2({name:'线路管理',url:'/Tour/Manage',isModal:false,showHead:false})">线路管理</a></li>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('酒店管理','/Hotel/Manage',true)">
                                <img src="/images/financelistimg4.jpg" alt="" border="0" /></a><a href="javascript:void(0)"
                                    onclick="parent.addTab('酒店管理','/Hotel/Manage',true)">酒店管理</a></li>
                            <li><a href="javascript:void(0)" onclick="parent.showWindows('门票管理','/Scenery/Manage',true)">
                                <img src="/images/financelistimg5.jpg" alt="" border="0" /></a><a href="javascript:void(0)"
                                    onclick="parent.addTab('景点管理','/Scenery/Manage',true)">景点管理</a></li>
                        </ul>
                        <div class="del_float">
                        </div>
                    </div>
                </div>
            </div>
            <div class="in_fydh_out">
                <div class="financejlubt">
                    <img src="/images/jlubtproduct.jpg" alt="" border="0" /></div>
                <div class="financejlu">
                    <table class="financejlvlist" width="711" border="0" cellspacing="0" cellpadding="0">
                        @foreach (Product shtlist in Model.ProductList)
                        {
                            <tr>
                                <td class="rightwuborder" width="76" height="0" bgcolor="#FFFFFF">
                                    @shtlist.CreateTime.ToShortDateString()
                                </td>
                                <td class="rightwuborder" width="400" height="0" bgcolor="#FFFFFF">
                                    @if (shtlist.Type == ProductType.Hotel)
                                    {
                                        <a href="javascript:void(0)" onclick="parent.addTab('酒店浏览','/Hotel/ViewHotel?HotelID=@shtlist.ID',true)">@shtlist.Name</a>
                                    }
                                    else if (shtlist.Type == ProductType.SceneryTicket)
                                    { 
                                        <a href="javascript:void(0)"onclick="parent.addTab('景点浏览','/Scenery/ViewScenery?SceneryID=@shtlist.ID',true)">@shtlist.Name</a>
                                    }
                                    else if (shtlist.Type == ProductType.Tour)
                                    {
                                        <a href="javascript:void(0)"onclick="parent.addTab('线路浏览','/Tour/View?TourID=@shtlist.ID',true)">@shtlist.Name</a>
                                    }
                                </td>
                                <td width="93" height="0" bgcolor="#FFFFFF" style="text-align: right;">
                                </td>
                                <td width="93" height="0" bgcolor="#FFFFFF" align="center">
                                    @shtlist.StateName
                                </td>
                                <td width="158" height="0" align="center" bgcolor="#FFFFFF">
                                    @if (shtlist.Type == ProductType.Hotel)
                                    {
                                        <a href="javascript:void(0)"onclick="parent.addTab('浏览','/Hotel/ViewHotel?HotelID=@shtlist.ID',true)">
                                            详情</a>
                                    }
                                    else if (shtlist.Type == ProductType.SceneryTicket)
                                    {
                                        <a href="javascript:void(0)"onclick="parent.addTab('浏览','/Scenery/ViewScenery?SceneryID=@shtlist.ID',true)">
                                            详情</a>
                                    }
                                    else if (shtlist.Type == ProductType.Tour)
                                    {
                                        <a href="javascript:void(0)"onclick="parent.addTab('浏览','/Tour/View?TourID=@shtlist.ID',true)">
                                            详情</a>
                                    }
                                </td>
                            </tr>                       
                        }
                    </table>
                    <div class="del_float">
                    </div>
                </div>
            </div>
        </div>
        <div class="inleft_bottom">
            <img src="/images/in_left_b.png" alt="" border="0" /></div>
    </div>
    <div class="finance_right">
        <div class="finance_rightt">
            <img src="/images/in_right_top.png" alt="" border="0" /></div>
        <div class="finance_rightc">
            <div class="in_xczc_bt">
                <img src="/images/Noticeproduct.png" alt="" border="0" /></div>
            <div class="noticelr">
                <ul class="product_stat_ul">
                    <li>在售线路：@Model.tourcount</li>
                    <li>在售酒店：@Model.hotelcount</li>
                    <li>在售门票：@Model.scenerycount</li>
                </ul>
            </div>
            <div class="notice">
                <div class="in_xczc_bt">
                    <img src="/images/Problem.png" alt="" border="0" /></div>
                <div class="noticelr">
                    <ul>
                        <li><a href="#">如何新增产品？</a></li>
                        <li><a href="#">如何预定产品？</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="finance_rightd">
            <img src="/images/in_right_bottom.png" alt="" border="0" /></div>
    </div>
    <div class="del_float">
    </div>
</div>
